<?php echo '';exit;?>
<!--{if $_GET[uid]}-->
<!--{template home/space_header}-->
<!--{template home/space_menu}-->
<!--{if in_array($do, array('feed', 'view'))}-->
<!--{eval}-->
$page=$_G['page'];
$pagenum='15';
$length='200';
$begin=($page-1)*$pagenum;
$threadlist=array();

require_once(DISCUZ_ROOT."source/function/function_post.php");
$rs=DB::query("select t.*,p.message from ".DB::table("forum_thread")." t left join ".DB::table("forum_post")." p on  t.tid=p.tid and p.first=1 where t.authorid='{$space['uid']}' and t.displayorder>=0 and t.attachment>0 order by t.dateline desc limit $begin, $pagenum");
while ($rw=DB::fetch($rs)){
	$rw['message']=messagecutstr($rw['message'],$length,'');
	$rw['message']=dhtmlspecialchars($rw['message']);		
	$tableid=substr($rw['tid'],-1,1);
	$rw['aid']=DB::result_first("SELECT aid FROM ".DB::table("forum_attachment_{$tableid}")." WHERE `tid` ='{$rw['tid']}'AND isimage =1 ORDER BY aid ASC LIMIT 0 , 1");
	$threadlist[]=$rw;
}

$allnum=DB::result_first("select count(*) from ".DB::table("forum_thread")." t where t.authorid='{$space['uid']}' and t.displayorder>=0 and t.attachment=2");
$klp_pagation=multi($allnum,$pagenum,$page,"home.php?mod=follow&uid={$space['uid']}&do=view&from=space");
if(!isset($_G['cache']['forums'])){
	loadcache('forums');
}
<!--{/eval}-->
<div class="klp_conwrapr klp_followfeed">
	<div class="klp_conarea">
		<div class="klp_contabnull">
			<!--{if $threadlist}-->
			<div class="klp_topconwrap">
				<div class="klp_actfilterdown">
					<span class="klp_mediumtit left">共上传{$allnum}组创作</span>
				</div>
				<div class="klp_allworklist">
					<div class="klp_wlistbox">
						<!--{loop $threadlist $thread}-->
						<!--{eval $pic=get_thread_aid($thread[tid]);}-->
						<div class="klp_mnbox">
							<div class="klp_mnboxcon">
								<div class="klp_bdimg">
									<a href="forum.php?mod=viewthread&tid=$thread[tid]" class="klp_bdimgon" title="$thread[subject]" target="_blank">
										<img src="{eval echo(getforumimg($pic[aid],0,520,390))}" title="$thread[subject]" alt="$thread[subject]">
									</a>
								</div>
								<div class="klp_mninfo">
									<p class="klp_mninfotitle">
										<a href="forum.php?mod=viewthread&tid=$thread[tid]" title="$thread[subject]" class="klp_titleinfo" target="_blank" style="width: 154px;">$thread[subject]</a>
										<span href="javascript:;" class="klp_titleicon klp_cardfire2" title="编辑推荐"></span>
									</p>
									<p class="klp_mninfotype" title="$_G['cache']['forums'][$thread[fid]][name]">
										 $_G['cache']['forums'][$thread[fid]][name]
									</p>
									<p class="klp_mninfoitem">
										<span class="klp_statview" title="共{$thread[replies]}人气">{$thread[replies]}</span>
										<span class="klp_statcomment" title="共{$thread[replies]}评论">{$thread[replies]}</span>
										<span class="klp_stattui" title="共{$thread[recommends]}推荐">{$thread[recommends]}</span>
									</p>
								</div>
								<div class="klp_mncell">
									<a href="home.php?mod=space&uid=$space['uid']" title="{$thread[author]}" target="_blank" >
           									 <img src="{echo avatar($space['uid'],'big',1);}"  alt="" height="30" width="30">
                							 {$thread[author]}
        							</a>
									<span class="time" title="创建时间：{echo date('Y-m-d', $thread['dateline']);}">{echo date('Y-m-d', $thread['dateline']);}</span>
								</div>
							</div>
						</div>
						<!--{/loop}-->
					</div>
				</div>
			</div>

			<!--{if $klp_pagation}-->
			<div class="klp_homepage klp_bigcl">
				$klp_pagation
			</div>
			<!--{/if}-->

			<!--{else}-->

			<div class="klp_wknull">
				<div class="klp_wknullinner" style="padding-top: 113.25px;">
					<span class="klp_mullimg"></span>
					<div class="klp_wknulltips">
						<p class="klp_subjecttit">TA还没有发布过任何创作</p>
					</div>
				</div>
			</div>

			<!--{/if}-->

		</div>

		<div class="klp_userftcon">

			<div class="klp_userzwrap left">

				<div class="klp_showlistbox">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">个人信息</span>
						<a href="home.php?mod=space&uid=$space[uid]&do=profile&from=space" title="更多" class="klp_vmore klp_weblinkcolor">更多</a>
					</div>
					<div class="klp_showcon">
						<ul class="klp_attinfo">
							<li class="klp_enterpriselink"><a href="home.php?mod=space&uid=$space[uid]" title="{$space[username]}">{$space[username]}</a></li>
							<li class="klp_firmaddr"><!--{if $member_profile[resideprovince]}-->{$member_profile[resideprovince]}<!--{if $member_profile[residecity]}-->-{$member_profile[residecity]}<!--{/if}--><!--{else}-->未设置<!--{/if}--></li>
							<li class="klp_numenterprises"><!--{if $member_profile[bio]}-->$member_profile[bio]<!--{else}-->这家伙很懒，什么都没有留下！<!--{/if}--></li>                            
						</ul>
					</div>
				</div>

				<!--{eval $manage_forum = get_uid_forum($space[uid]);}-->
				<!--{if $manage_forum}-->
				<div class="klp_showlistbox">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">{lang manage_forums}</span>
					</div>
					<div class="klp_showcon">
						<div class="klp_materfits">
							<!--{loop $manage_forum $key $value}-->
							<span class="mark"><a href="forum.php?mod=forumdisplay&fid=$key" title="{$value}">{$value}</a></span>
							<!--{/loop}-->
						</div>
					</div>
				</div>
				<!--{/if}-->

				<!--{eval $manage_forum = get_uid_forum($space[uid]);}-->
				<!--{if $manage_forum}-->
				<div class="klp_showlistbox hide">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">{lang manage_forums}</span>
					</div>
					<div class="klp_visitwrap">
						<ul class="klp_visitorcon">
							<!--{loop $manage_forum $key $value}-->
							<!--{eval $forum_forumfield = get_forum_forumfield($key);}-->
							<li class="klp_complaintteam">
							<a href="forum.php?mod=forumdisplay&fid=$key" title="{$value}" class="klp_visithd">
								<!--{if $forum_forumfield[icon]}-->
								<img src="data/attachment/common/{$forum_forumfield[icon]}" width="48" height="48">
								<!--{else}-->
								<img src="template/huyou_zisy/klp_img/home/fail.png" width="48" height="48">
								<!--{/if}-->
							</a>
							</li>
							<!--{/loop}-->
						</ul>
					</div>
				</div>
				<!--{/if}-->

				<!--{eval $home_follow = get_home_follow($space[uid],12)}-->
				<!--{if $home_follow}-->
				<!--{if $_GET[do]!='following' && $_GET[do]!='follower'}-->
				<div class="klp_showlistbox">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">TA的关注 </span>
					</div>
					<div id="recent_view_member">
						<div class="klp_visitwrap">
							<ul class="klp_visitorcon">
								<!--{loop $home_follow $var_follow}-->
								<li class="klp_visitorlist">
								<a href="home.php?mod=space&uid=$var_follow[followuid]" title="$var_follow[fusername]" c="1" class="klp_visithd">
									<img src="{echo avatar($var_follow[followuid],'big',1);}" width="48" height="48">
								</a>
								<a href="home.php?mod=space&uid=$var_follow[followuid]" title="$var_follow[fusername]" class="klp_visname">$var_follow[fusername]</a>
								<span>刚刚</span>
								</li>
								<!--{/loop}-->

							</ul>
						</div>
					</div>
				</div>
				<!--{/if}-->
				<!--{else}-->
				<div class="klp_showlistbox">
					<div class="klp_showlisttbox border-bottom">
						<span class="klp_showlisttit">TA的关注 </span>
					</div>
					<div class="klp_smnullbox">
						<div class="klp_msgboxnull">
							<div class="klp_msgboxinner">
								<span class="klp_mullimg"></span>
								<span class="klp_msgnulltips">还没有人关注TA</span>
							</div>
						</div>
					</div>
				</div>
				<!--{/if}-->
				<div class="klp_usercopywrap">
					<a href="javascript:;" title="{$space[username]}" class="klp_weblinkcolor">{$space[username]} &nbsp;&nbsp;</a>版权所有，请勿用于任何用途
				</div>
			</div>

			<div class="klp_conymeida right">
				<div class="klp_homecontent">
					<div class="klp_commentmod klp_artcomments klp_bloglist">
						<form action="home.php?mod=spacecp&ac=comment" id="quickcommentform_$space[uid]" name="quickcommentform_$space[uid]" method="post" autocomplete="off" onsubmit="ajaxpost('quickcommentform_$space[uid]', 'return_commentwall_$space[uid]');doane(event);">
						<div id="klp_neidocom" class="editcomment">
							<input type="hidden" name="refer" value="home.php?mod=space&uid=$space[uid]">
							<input type="hidden" name="id" value="$space[uid]">
							<input type="hidden" name="idtype" value="uid">
							<input type="hidden" name="commentsubmit" value="true">
							<div class="klp_pingcon">
								<textarea name="message" id="comment_message" class="klp_textstyle klp_txtarastyle commentbig textarea gbook-textarea"></textarea><span class="klp_jzgg">严禁广告</span>
							</div>
							<div class="klp_expbox">
								<input type="hidden" name="handlekey" value="commentwall_$space[uid]">
								<span id="return_commentwall_$space[uid]" class=""></span>
								<input type="hidden" name="formhash" value="{FORMHASH}">
								<a id="comment_face" href="javascript:;" title="{lang insert_emoticons}" onclick="showFace(this.id, 'comment_message');return false;" class="ico_smile">添加表情</a>
								<button type="submit" name="commentsubmit_btn" value="true" id="commentsubmit_btn" class="klp_btncurmid klp_btndisabled klp_addmess">留言</button>
							</div>
						</div>
						</form>

						<!--{eval $home_comment = get_uid_home_comment($space[uid],10);}-->

						<div class="comment-box" >
							<div class="klp_allcommbox">
								<p class="commenttxt">全部留言</p>
								<div class="allcomment-con">
									<div class="commentwrap">
										<script type="text/javascript">
											function succeedhandle_commentwall_$space[uid](url, msg, values) {
												wall_add(values['cid']);
											}
										</script>
										<ul class="klp_pingcon">
											<div id="comment_ul" class="klp_vwall"></div>
											<!--{if $home_comment}-->
											<!--{loop $home_comment $var_comment}-->
											<li id="comment_$var_comment[cid]_li" class="comment-list">
											<div class="comment-list-box gbook-list-box">
												<a href="home.php?mod=space&uid=$var_comment[authorid]" c="1" class="userimg">
													<img src="{echo avatar($var_comment[authorid],'big',1);}" alt="">
												</a>
												<div class="timebox">
													<a href="home.php?mod=space&uid=$var_comment[authorid]" title="" class="usernick">$var_comment[author]</a>
													<span class="issuetimer">
														<span class="time"><!--{echo date('Y-m-d ',$var_comment[dateline]);}--></span>
													</span>
												</div>
												<p class="commoncon">
													<span class="commontxt">$var_comment[message]</span>
												</p>
												<!--{if $_G[uid]}-->
												<div class="commenticons">
													<div class="ricons">
														<!--{if $var_comment[authorid]==$_G[uid]}-->
														<span class="report klp_commnetreport">
															<a href="home.php?mod=spacecp&ac=comment&op=edit&cid=$var_comment[cid]&handlekey=editcommenthk_{$var_comment[cid]}" id="c_$var_comment[cid]_edit" onclick="showWindow(this.id, this.href, 'get', 0);">{lang edit}</a>
														</span>
														<!--{/if}-->
														<!--{if $var_comment[authorid]==$_G[uid] || $var_comment[uid]==$_G[uid] || checkperm('managecomment')}-->
														<span class="report klp_commnetreport">
															<a href="home.php?mod=spacecp&ac=comment&op=delete&cid=$var_comment[cid]&handlekey=delcommenthk_{$var_comment[cid]}" id="c_$var_comment[cid]_delete" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
														</span>
														<!--{/if}-->
													</div>
												</div>
												<!--{/if}-->
											</div>
											</li>
											<!--{/loop}-->
											<!--{else}-->
											<div class="klp_allcempy">
												<a href="javascript:;" class="first-people">还没有收到留言</a>
											</div>
											<!--{/if}-->
										</ul>
									</div>
									<!--{if $home_comment}-->
									<div class="klp_moremess">
										<a href="home.php?mod=space&uid=$space[uid]&do=wall&from=space" class="more-gbook">查看更多留言</a>
									</div>
									<!--{/if}-->
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>

		</div>

	</div>

</div>

<!--{elseif in_array($do, array('following', 'follower'))}-->

<div class="klp_conwrapr">
	<div class="klp_conarea">

  	<!--{if $list}-->

		<div class="klp_contabnull">
			<div class="klp_topconwrap">

				<div class="klp_designerbox clear klp_mt20">

					<!--{loop $list $fuid $fuser}-->
					<!--{if $do=='following'}-->
					<!--{eval $follow_member_count = get_member_count($fuser[followuid]);}-->
					<!--{eval $follow_member_profile = get_member_profile($fuser[followuid]);}-->
					<div class="klp_suserlist">
						<a href="home.php?mod=space&uid=$fuser['followuid']" title="$fuser['fusername']" class="avatar" target="_blank">
							<img src="{echo avatar($fuser['followuid'],'big',1);}" width="80" height="80" alt="">
						</a>
						<div class="klp_suerinfo">
							<p class="klp_authortitle">
								<a href="home.php?mod=space&uid=$fuser['followuid']" title="$fuser['fusername']" target="_blank" class="klp_titleinfo">$fuser['fusername']&nbsp;<span id="followbkame_{$fuser['followuid']}" class="xg1 xs1 xw0"><!--{if $fuser['bkname']}-->$fuser[bkname]<!--{/if}--></span></a>
							</p>
							<div class="klp_posinfo">
								<span>
									<!--{if $follow_member_profile[residecity]}-->{$follow_member_profile[residecity]}<!--{else}-->未设置<!--{/if}-->
									<!--{if $follow_member_profile[occupation]}-->&nbsp;|&nbsp;{$follow_member_profile[occupation]}<!--{/if}-->
								</span>

							</div>
							<div class="klp_infonum">
								<div class="work">
									<span>创作</span>
									<a href="home.php?mod=follow&uid=$space[uid]" target="_blank" title="共创作{$follow_member_count[threads]}篇作品">$follow_member_count[threads]</a>
									<i></i>
								</div>
								<div class="work">
									<span>{lang follow_follower}</span>
									<a href="home.php?mod=follow&do=follower&uid=$fuser['followuid']" target="_blank" title="共{$memberinfo[$fuid]['follower']}{lang follow_follower}"><span id="followernum_$fuser['followuid']">$memberinfo[$fuid]['follower']</span></a>
									<!--{if $viewself && $fuser[followuid] != $_G[uid]}--><i></i><!--{/if}-->
								</div>
								<!--{if $viewself && $fuser[followuid] != $_G[uid]}-->
								<div class="work">
									<a href="home.php?mod=spacecp&ac=follow&op=bkname&fuid=$fuser['followuid']&handlekey=followbkame_$fuser['followuid']" id="fbkname_$fuser['followuid']" onclick="showWindow('followbkame_{$fuser['followuid']}', this.href, 'get', 0);"><!--{if $fuser['bkname']}-->{lang follow_mod_bkname}<!--{else}-->{lang follow_add_bkname}<!--{/if}--></a>
								</div>
								<!--{/if}-->
							</div>
							<div class="signature">
								<p>$fuser[recentnote]</p>
							</div>
							<div class="klp_btnarea">
								<!--{if $viewself}-->
									<a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['followuid']" onclick="ajaxget(this.href);doane(event);" class="btn-current attention klp_btndefaultsec following klp_linehmid">{lang follow_del}</a>
								<!--{elseif $fuser[followuid] != $_G[uid]}-->
									<!--{if $fuser['mutual']}-->
										<a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['followuid']"  onclick="ajaxget(this.href);doane(event);" class="btn-current attention klp_btndefaultsec following klp_linehmid">{lang follow_del}</a>
									<!--{elseif helper_access::check_module('follow')}-->
										<a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$fuser['followuid']" onclick="ajaxget(this.href);doane(event);" class="klp_btndefaultmn btn-current attention notfollow klp_linehmid">{lang follow_add}</a>
									<!--{/if}-->
								<!--{/if}-->
							</div>
						</div>
						<!--{eval $author_thread =get_uid_thread($fuser['followuid'],'dateline',3);}-->
						<div class="klp_workshow">
							<!--{if $author_thread}-->
							<ul class="klp_wordbox">
								<!--{loop $author_thread $var}-->
								<li class="klp_wksitem">
								<a href="forum.php?mod=viewthread&tid=$var[tid]" title="$var[subject]" class="klp_bdimgon" target="_blank">
									<img src="{eval echo(getforumimg($var[aid],0,400,300))}" width="200" height="150" alt="">
								</a>
								</li>
								<!--{/loop}-->
							</ul>
							<!--{else}-->
							<<ul class="klp_wordbox klp_wordbox2">
								<p>暂无作品</p>
							</ul>
							<!--{/if}-->
							<div class="klp_wksbox">
								<div class="klp_wkshmore">
									<a href="home.php?mod=space&uid=$fuser['followuid']" title="{$fuser['fusername']}的个人主页" class="klp_vmore" target="_blank">
									<div class="more-icon">
										<span></span><span></span><span></span>
									</div>
									</a>
								</div>
							</div>
						</div>
					</div>
					<!--{else}-->
					<!--{eval $f_member_count = get_member_count($fuser[uid]);}-->
					<!--{eval $f_member_profile = get_member_profile($fuser[uid]);}-->
					<div class="klp_suserlist">
						<a href="home.php?mod=space&uid=$fuser['uid']" title="$fuser['username']" class="avatar" target="_blank">
							<img src="{echo avatar($fuser['uid'],'big',1);}" width="80" height="80" alt="">
						</a>
						<div class="klp_suerinfo">
							<p class="klp_authortitle">
								<a href="home.php?mod=space&uid=$fuser['uid']" title="$fuser['username']" target="_blank" class="klp_titleinfo">$fuser['username']</a>
							</p>
							<div class="klp_posinfo">
								<span>
									<!--{if $f_member_profile[residecity]}-->{$f_member_profile[residecity]}<!--{else}-->未设置<!--{/if}-->
									<!--{if $f_member_profile[occupation]}-->&nbsp;|&nbsp;{$f_member_profile[occupation]}<!--{/if}-->
								</span>
							</div>
							<div class="klp_infonum">
								<div class="work">
									<span>创作</span>
									<a href="home.php?mod=follow&uid=$space[uid]" target="_blank" title="共创作{$f_member_count[threads]}篇作品">$f_member_count[threads]</a>
									<i></i>
								</div>
								<div class="fans">
									<span>{lang follow_follower}</span>
									<a href="home.php?mod=follow&do=follower&uid=$fuser['uid']" target="_blank" title="共{$memberinfo[$fuid]['follower']}{lang follow_follower}"><span id="followernum_$fuser['uid']">$memberinfo[$fuid]['follower']</span></a>
								</div>
							</div>
							<div class="signature">
								<p>$fuser[recentnote]</p>
							</div>
							<div class="klp_btnarea">
								<!--{if $fuser[uid] != $_G[uid]}-->
									<!--{if $fuser['mutual']}-->
										<a id="a_followmod_{$fuser['uid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['uid']"  onclick="ajaxget(this.href);doane(event);" class="btn-current attention klp_btndefaultsec following klp_linehmid">
											{lang follow_del}
										</a>
									<!--{elseif helper_access::check_module('follow')}-->
										<a id="a_followmod_{$fuser['uid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$fuser['uid']" onclick="ajaxget(this.href);doane(event);" class="klp_btndefaultmn btn-current attention notfollow klp_linehmid">
											{lang follow_add}
										</a>
									<!--{/if}-->
								<!--{/if}-->
							</div>
						</div>
						<!--{eval $author_thread =get_uid_thread($fuser['uid'],'dateline',3);}-->
						<div class="klp_workshow">
							<!--{if $author_thread}-->
							<ul class="klp_wordbox">
								<!--{loop $author_thread $var}-->
								<li class="klp_wksitem">
								<a href="forum.php?mod=viewthread&tid=$var[tid]" title="$var[subject]" class="klp_bdimgon" target="_blank">
									<img src="{eval echo(getforumimg($var[aid],0,400,300))}" width="200" height="150" alt="">
								</a>
								</li>
								<!--{/loop}-->
							</ul>
							<!--{/if}-->
							<div class="klp_wksbox">
								<div class="klp_wkshmore">
									<a href="home.php?mod=space&uid=$fuser['uid']" title="{$fuser['username']}的个人主页" class="klp_vmore" target="_blank">
									<div class="more-icon">
										<span></span><span></span><span></span>
									</div>
									</a>
								</div>
							</div>
						</div>
					</div>
					<!--{/if}-->
					<!--{/loop}-->
				</div>
			</div>

			<!--{if !empty($multi)}-->
			<div class="klp_homepage klp_bigcl">
				$multi
			</div>
			<!--{/if}-->

		</div>


	<!--{else}-->
		<div id="nofollowmsg">
			<div class="flw_thread">
				<ul>
					<li class="flw_article">
						<div class="emp">
							<h2 class="xg1 xs2 hm">
								<!--{if $viewself}-->
									<!--{if $do=='following'}-->
										{lang follow_you_following_none}<a href="home.php?mod=follow&view=other" class="xi2">{lang follow_hall}</a>{lang follow_fetch_interested_user}
									<!--{else}-->
										{lang follow_you_follower_none1}<a href="home.php?mod=follow" class="xi2">{lang follow_add_feed}</a>{lang follow_you_follower_none2}
									<!--{/if}-->
								<!--{else}-->
									<!--{if $do=='following'}-->
										{lang follow_user_following_none}
									<!--{else}-->
										{lang follow_user_follower_none}
									<!--{/if}-->
								<!--{/if}-->
							</h2>
						</div>
					</li>
				</ul>
			</div>
		</div>
	<!--{/if}-->


	</div>
</div>


<!--{/if}-->

<!--{if $showguide && $do == 'feed'}-->

<div id="nv_menu" style="display:none;">
	<div>
		<img src="{IMGDIR}/flw_guide.png" alt="" />
		<button class="pn pnc" style="margin: -50px 0 20px 430px;" onclick="hideMenu()"><span>{lang follow_i_know}</span></button>
	</div>
</div>
<script type="text/javascript">
	showMenu({'ctrlid':'nv','pos':'13','cover':'1'});
</script>
<!--{/if}-->

<script type="text/javascript" reload="1">
	function succeedhandle_followmod(url, msg, values) {
		var numObj = $('followernum_'+values['fuid']);
		if(numObj) {followernum = parseInt(numObj.innerHTML);}
		if(values['type'] == 'add') {
			if(values['from'] == 'head') {
				if($('followflag')) $('followflag').style.display = '';
				if($('unfollowflag')) $('unfollowflag').style.display = 'none';
				if($('fbkname_'+values['fuid'])) $('fbkname_'+values['fuid']).style.display = '';
			} else if($('a_followmod_'+values['fuid'])) {

				$('a_followmod_'+values['fuid']).innerHTML = '{lang follow_del}';
				if(values['from'] != 'block') {
					$('a_followmod_'+values['fuid']).className = 'btn-current attention klp_btndefaultsec following klp_linehmid';
				}
				$('a_followmod_'+values['fuid']).href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid']+(values['from'] == 'block' ? '&from=block' : '');

			}
			if(numObj) {
				numObj.innerHTML = followernum + 1;
			}

		} else if(values['type'] == 'del') {
			if(values['from'] == 'head') {
				if($('followflag')) $('followflag').style.display = 'none';
				if($('unfollowflag')) $('unfollowflag').style.display = '';
				if($('followbkame_'+values['fuid'])) $('followbkame_'+values['fuid']).innerHTML = '';
				if($('fbkname_'+values['fuid'])) {
					$('fbkname_'+values['fuid']).innerHTML = '[{lang follow_add_bkname}]';
					$('fbkname_'+values['fuid']).style.display = 'none';
				}
			} else if($('a_followmod_'+values['fuid']))  {
				$('a_followmod_'+values['fuid']).innerHTML = '{lang follow_add}';
				if(values['from'] != 'block') {
					$('a_followmod_'+values['fuid']).className = 'klp_btndefaultmn btn-current attention notfollow klp_linehmid';
				}
				$('a_followmod_'+values['fuid']).href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+values['fuid']+(values['from'] == 'block' ? '&from=block' : '');
			}
			if(numObj) {
				numObj.innerHTML = followernum - 1;
			}
		} else if(values['type'] == 'special') {
			if(values['from'] == 'head') {
				var specialObj = $('specialflag_'+values['fuid']);
				if(values['special'] == 1) {
					specialObj.className = 'flw_specialfo';
					specialObj.innerHTML = '{lang follow_add_special_following}';
				} else {
					specialObj.className = 'flw_specialunfo';
					specialObj.innerHTML = '{lang follow_del_special_following}';
				}
				specialObj.title = specialObj.innerHTML;
				specialObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&special='+values['special']+'&fuid='+values['fuid']+'&from=head';
			} else {
				$('a_specialfollow_'+values['fuid']).innerHTML = values['special'] == 1 ? '{lang follow_add_special_following}' : '{lang follow_del_special_following}';
				$('a_specialfollow_'+values['fuid']).href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&special='+values['special']+'&fuid='+values['fuid'];
			}
		}
	}
	function changefeed(tid, pid, flag, obj) {
		var x = new Ajax();
		var o = obj.parentNode;
		for(var i = 0; i < 4; i++) {
			if(o.id.indexOf('original_content_') == -1) {
				o = o.parentNode;
			} else {
				break;
			}
		}
		x.get('forum.php?mod=ajax&action=getpostfeed&inajax=1&tid='+tid+'&pid='+pid+'&type=changefeed&flag='+flag, function(s){
			o.innerHTML = s;
		});
	}
	function vieworiginal(clickobj, id) {
		var obj = $(id);
		if(obj.style.display == 'none') {
			obj.style.display =  '';
			clickobj.innerHTML = '- {lang pack_up}';
		} else {
			obj.style.display =  'none';
			clickobj.innerHTML = '+ {lang follow_open_feed}';
		}
	}
</script>

<!--{template home/space_footer}-->


<!--{else}-->



<!--{if $do == 'feed'}-->
	<!--{if $_GET[mod] == 'space'}-->
	<!--{eval dheader("Location: home.php?mod=space&uid=$_G[uid]");exit;}-->
	<!--{/if}-->
	<!--{template common/header}-->
	<div id="pt" class="bm cl">
		<div class="z">
			<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
			<a href="home.php?mod=follow">{lang follow}</a>
		</div>
	</div>
	<style id="diy_style" type="text/css"></style>
	<div class="wp">
		<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
	</div>
	<div id="ct" class="ct2_a wp cl" >
		<!--{if $_G[setting][homestyle]}-->
			<div class="appl">
				<!--{subtemplate common/userabout}-->
			</div>
		<!--{else}-->
		<div class="appl">
			<div class="tbn">
				<h2 class="mt bbda">{lang follow}</h2>
				<ul>
					<li$actives[follow]><a href="home.php?mod=follow&view=follow">{lang follow_following}</a></li>
					<li$actives[special]><a href="home.php?mod=follow&view=special">{lang follow_special_following}</a></li>
					<li$actives[other]><a href="home.php?mod=follow&view=other">{lang follow_hall}</a></li>
					<!--{hook/follow_nav_extra}-->
				</ul>
			</div>
		</div>
		<!--{/if}-->
		<div class="mn">
		<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
<!--{else}-->
	<!--{if $_GET[mod] == 'space'}-->
	<!--{eval dheader("Location: home.php?mod=space&uid=$_G[uid]");exit;}-->
	<!--{/if}-->
	<!--{if $_G[setting][homepagestyle]}-->
		<!--{subtemplate home/space_header}-->
		<div id="ct" class="ct2 wp cl" >
			<div class="mn">
				<div class="bm">
					<div class="bm_h">
						<h1 class="mt">{lang follow}</h1>
					</div>
				<div class="bm_c">
	<!--{else}-->
		<!--{template common/header}-->
		<div id="pt" class="bm cl">
			<div class="z">
				<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
				<a href="home.php?mod=space&uid=$space[uid]">{$space[username]}</a> <em>&rsaquo;</em>
				<a href="home.php?mod=follow&uid=$space[uid]&do=view&from=space">{lang follow}</a>
			</div>
		</div>
		<style id="diy_style" type="text/css"></style>
		<div class="wp">
			<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
		</div>
		<!--{template home/space_menu}-->
		<div id="ct" class="ct1 wp cl">
			<div class="mn">
				<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
				<div class="bm bw0">
					<div class="bm_c">
	<!--{/if}-->
<!--{/if}-->

		<!--{hook/follow_top}-->

		<!--{if in_array($do, array('feed', 'view'))}-->
			<!--{if helper_access::check_module('follow') && ( $do == 'feed' || ( $do == 'view' && $viewself))}-->
				<div id="flw_header" class="mbw bbs cl">
					<!--{if $do == 'feed'}-->
					<div class="my_flw_stats y">
						<ul>
							<li><span class="xg1">{lang follow}</span><a href="home.php?mod=space&uid=$uid"><strong class="xi2">$space['feeds']</strong></a></li>
							<li><span class="xg1">{lang follow_add}</span><a href="home.php?mod=follow&do=following&uid=$uid"><strong class="xi2">$space['following']</strong></a></li>
							<li><span class="xg1">{lang follow_follower}</span><a href="home.php?mod=follow&do=follower&uid=$uid"><strong class="xi2">$space['follower']</strong></a></li>
						</ul>
					</div>
					<!--{/if}-->

					<script type="text/javascript" src="{$_G[setting][jspath]}forum.js?{VERHASH}"></script>
					<script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
					<script type="text/javascript">
						var postminchars = parseInt('$_G['setting']['minpostsize']');
						var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
						var disablepostctrl = parseInt('{$_G['group']['disablepostctrl']}');
					</script>
					<!--{eval $dmfid = $_G['setting']['followforumid'] && !empty($defaultforum) ? $_G['setting']['followforumid'] : 0;}-->
					<form method="post" autocomplete="off" id="fastpostform" action="home.php?mod=spacecp&ac=follow&op=newthread&topicsubmit=yes&infloat=yes&handlekey=fastnewpost&inajax=1" onsubmit="return fastpostvalidate(this);" style="float: left;">
						<div id="fastpostreturn" style="margin:-5px 0 5px"></div>
						<div id="flw_post_subject" style="display:none;">
							<span id="flw_checklen" class="y"><span id="checklen" class="xg1">80</span></span>
							<input type="text" id="subject" name="subject" onkeyup="strLenCalc(this, 'checklen', 80);" tabindex="11" />
						</div>

						<div id="flw_post_extra" class="mtn cl">
							<div{if $_G[setting][fastsmilies]} class="hasfsl"{/if} id="fastposteditor">
								<div class="tedt">
									<div class="area">
										<textarea rows="5" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, '$(\'fastpostsubmit\').click()');" tabindex="12" class="pt xs2"></textarea>
									</div>
									<div id="flw_bar" class="bar">
										<!--{eval $seditor = array('fastpost', array('smilies', 'at'), 0, '<span id="spanButtonPlaceholder">{lang upload}</span>');}-->
										<!--{subtemplate common/seditor}-->
									</div>
								</div>
							</div>
							<script type="text/javascript">
							var editorid = '';
							var ATTACHNUM = {'imageused':0,'imageunused':0,'attachused':0,'attachunused':0}, ATTACHUNUSEDAID = new Array(), IMGUNUSEDAID = new Array();
							</script>

							<div class="upfl{if empty($_GET[from]) && $_G[setting][fastsmilies]} hasfsl{/if}">
								<div id="attachlist" class="fieldset flash cl"><span style="font-size:0"></span></div>
								<!--{if empty($_G['setting']['pluginhooks']['follow_upload_extend'])}-->
									<!--{subtemplate common/upload}-->
									<script type="text/javascript">
										var upload = new SWFUpload({
											// Backend Settings
											upload_url: "{$_G[siteurl]}misc.php?mod=swfupload&action=swfupload&operation=upload&fid={$dmfid}",
											post_params: {"uid" : "$_G[uid]", "hash":"$swfconfig[hash]"},

											// File Upload Settings
											file_size_limit : "$swfconfig[max]",	// 100MB
											file_types : "$swfconfig[attachexts][ext]",
											file_types_description : "$swfconfig[attachexts][depict]",
											file_upload_limit : $swfconfig['limit'],
											file_queue_limit : 0,
											// Event Handler Settings (all my handlers are in the Handler.js file)
											swfupload_preload_handler : preLoad,
											swfupload_load_failed_handler : loadFailed,
											file_dialog_start_handler : fileDialogStart,
											file_queued_handler : fileQueued,
											file_queue_error_handler : fileQueueError,
											file_dialog_complete_handler : fileDialogComplete,
											upload_start_handler : uploadStart,
											upload_progress_handler : uploadProgress,
											upload_error_handler : uploadError,
											upload_success_handler : uploadSuccess,
											upload_complete_handler : uploadComplete,
											// Button Settings
											button_image_url : "{IMGDIR}/flw_post_attach.png",
											button_placeholder_id : "spanButtonPlaceholder",
											button_width: 18,
											button_height: 25,
											button_cursor:SWFUpload.CURSOR.HAND,
											button_window_mode: "transparent",
											custom_settings : {
												progressTarget : "attachlist",
												uploadSource: 'forum',
												uploadType: 'attach',
												<!--{if $swfconfig['maxsizeperday']}-->
												maxSizePerDay: $swfconfig['maxsizeperday'],
												<!--{/if}-->
												<!--{if $swfconfig['maxattachnum']}-->
												maxAttachNum: $swfconfig['maxattachnum'],
												<!--{/if}-->
												uploadFrom: 'fastpost'
											},

											// Debug Settings
											debug: false
										});
									</script>
								<!--{else}-->
									<!--{hook/follow_upload_extend}-->
								<!--{/if}-->
								<script type="text/javascript">
									var fid = <!--{if $_G['setting']['followforumid']}-->$_G['setting']['followforumid']<!--{else}-->0<!--{/if}-->;
									var resulttype = 'follow';
									var attachBtn = $('flw_bar').getElementsByTagName('object')[0];
									var flwbarBtn = $('flw_bar').getElementsByTagName('a');
									if(BROWSER.ie && BROWSER.ie < 7 && attachBtn) {
										attachBtn.style.left = flwbarBtn ? flwbarBtn.length * 25 : 0;
									}

								</script>
							</div>

							<!--{if $secqaacheck || $seccodecheck}-->
								<!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu(this.id)"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
								<div class="mtm sec"><!--{subtemplate common/seccheck}--></div>
							<!--{/if}-->

							<input type="hidden" name="formhash" value="{FORMHASH}" />
							<input type="hidden" name="usesig" value="$usesigcheck" />
							<input type="hidden" name="adddynamic" value="1" />
							<input type="hidden" name="addfeed" value="1" />
							<input type="hidden" name="topicsubmit" value="true" />
							<input type="hidden" name="referer" value="{echo dreferer()}" />

							<div class="cl">
								<div class="z ptm" id="forumlistdev" style="display: none;">
									<select name="defaultforum" id="fid" class="ps z" onchange="modifyformurl(this.value);">
										<option value="0">{lang follow_other_forum}</option>
									</select>
									<select name="forumlist" id="forumlist" class="ps z" onchange="addforumlist(this);" style="display: none;">
										<option value="0">{lang follow_select_forum}</option>
										$forumlist
									</select>

									<div class="ftid">
										<span class="ftid" id="threadclass"></span>
									</div>
								</div>
								<div class="y">
									<p class="ptm pnpost">
										<label><input type="checkbox" name="syncbbs" id="syncbbs" value="1" onclick="showSyncInfo(this.checked)" />{lang follow_sync_forum}</label>&nbsp;
										<button {if $_G['uid']}type="submit" {else}type="button" onclick="showWindow('login', 'member.php?mod=logging&action=login&guestmessage=yes')" {/if}name="topicsubmit_btn" id="fastpostsubmit" value="topicsubmitbtn" tabindex="13" class="pn pnc"><strong>{lang follow_new_thread}</strong></button>
									</p>
								</div>
							</div>
						</div>
					</form>

					<script type="text/javascript">
					var nofollowfeed = <!--{if !empty($list['feed'])}-->0<!--{else}-->1<!--{/if}-->;
					var userdatakey = cookiepre+'fastpost{$_G[uid]}';
					function showSyncInfo(flag) {
						display('flw_post_subject');
						display('forumlistdev');
						var sObj = $('subject');
						sObj.value = '';
						strLenCalc(sObj, 'checklen', 80);
					}
					function fastpostvalidateextra() {
						var sObj = $('subject');
						if(!$('syncbbs').checked) {
							$('subject').value = '  ';
						}
						return true;
					}
					function backupContent() {
						var obj = $('fastpostform');
						if(!obj) return;
						var data = subject = message = '';
						saveUserdata(userdatakey, data);
						for(var i = 0; i < obj.elements.length; i++) {
							var el = obj.elements[i];
							if(el.name != '' && el.tagName == 'SELECT') {
								var elvalue = el.value;
								if(trim(elvalue)) {
									data += el.name + String.fromCharCode(9) + el.tagName + String.fromCharCode(9) + el.type + String.fromCharCode(9) + elvalue + String.fromCharCode(9, 9);
									if(el.tagName == 'SELECT' && el.name == 'defaultforum') {
										var values = {};
										for(var j = 0; j < el.options.length; j++) {
											var option = el.options[j];
											var ov = parseInt(option.value);
											if(typeof values[option.value] == 'undefined' && !isNaN(ov) && option.innerText != '' && option.innerText != 'undefined') {
												data += el.name + String.fromCharCode(9) + option.tagName + String.fromCharCode(9) + option.value + String.fromCharCode(9) + option.text + String.fromCharCode(9, 9);
												values[option.value] = option.value;
											}
										}
									}
								}
							}
						}
						saveUserdata(userdatakey, data);
					}
					function addforumlist(listObj) {
						var fid = listObj.value;
						if(fid) {
							var dforum = $('fid');
							//判断是否已经在列表中
							var haveoption = false;
							for(var i = 0; i < dforum.options.length; i++) {
								if(dforum.options[i].value == fid) {
									dforum.selectedIndex = i;
									haveoption = true;
									break;
								}
							}
							if(!haveoption) {
								var option = listObj.options[listObj.selectedIndex];
								var oOption = document.createElement("OPTION");
								oOption.text = trim(option.text);
								oOption.value = option.value;
								dforum.options.add(oOption);
								dforum.selectedIndex = dforum.options.length-1;
							}

							modifyformurl(fid);
						}
						dforum.style.display = '';
						listObj.style.display = 'none';
					}
					function modifyformurl(mfid) {
						if(parseInt(mfid)) {
							backupContent();
							$('fastpostform').action = 'home.php?mod=spacecp&ac=follow&op=newthread&topicsubmit=yes&infloat=yes&handlekey=fastnewpost&inajax=1&fid='+mfid;
							if(upload) {
								fid = mfid;
								var uploadurl = '{$_G[siteroot]}misc.php?mod=swfupload&action=swfupload&operation=upload&fid='+mfid;
								upload.setUploadURL(uploadurl);
							}
							getthreadclass();
						} else {
							var flist = $('forumlist');
							var dforum = $('fid');
							dforum.style.display = 'none';
							flist.style.display = '';
						}

					}

					function resumeContent() {
						var data = loadUserdata(userdatakey);
						if(in_array((data = trim(data)), ['', 'null', 'false', null, false])) {
							modifyformurl();
							return false;
						}
						var data = data.split(/\x09\x09/);
						var formObj = $('fastpostform');
						var sValue = 0;
						for(var i = 0; i < formObj.elements.length; i++) {
							var el = formObj.elements[i];
							if(el.name != '' && el.tagName == 'SELECT') {
								for(var j = 0; j < data.length; j++) {
									var ele = data[j].split(/\x09/);
									if(ele[0] == el.name) {
										elvalue = !isUndefined(ele[3]) ? ele[3] : '';
										if(ele[1] == 'SELECT') {
											//添加选项
											var values = {0:0<!--{if $_G['setting']['followforumid']}-->,$_G['setting']['followforumid']:$_G['setting']['followforumid']<!--{/if}-->};
											for(var oi = 0; oi < data.length; oi++) {
												var oObj = data[oi].split(/\x09/);
												if(oObj[0] == el.name && oObj[1] == 'OPTION' && typeof values[oObj[2]] == 'undefined') {
													var oOption = document.createElement("OPTION");
													el.options.add(oOption);
													oOption.text = oObj[3];
													values[oObj[2]] = oOption.value = oObj[2];
													if(elvalue == oObj[2]) {
														el.selectedIndex = el.options.length-1;
														modifyformurl(elvalue);
													}
												}
											}
											if(el.options.length < 2) {
												modifyformurl(0);
											}

										}
										break
									}
								}
							}
						}
					}
					function succeedhandle_fastnewpost(url, msg, values) {
						if(nofollowfeed) {
							window.location.reload();
						} else {
							if(parseInt(values.feedid)) {
								getNewFollowFeed(values.tid, values.fid, values.pid, values.feedid);
							} else {
								showDialog(msg, 'notice', null, null, 0, null, null, null, null, 3);
							}
							showCreditPrompt();
							//清空上次的输入
							var sObj = $('subject');
							$('attachlist').innerHTML = $('fastpostmessage').value = sObj.value = '';
							strLenCalc(sObj, 'checklen', 80);
							if(values.sechash) {
								updatesecqaa(values.sechash);
								updateseccode(values.sechash);
								$('seccodeverify_'+values.sechash).value='';
							}
				
						}

					}
					function getNewFollowFeed(tid, fid, pid, feedid) {
						var x = new Ajax();
						x.get('forum.php?mod=ajax&action=getpostfeed&inajax=1&tid='+tid+'&fid='+fid+'&pid='+pid+'&feedid='+feedid, function(s){
							newli = document.createElement("li");
							newli.innerHTML = s;
							var listObj = $('followlist');

							listObj.insertBefore(newli, listObj.firstChild);
						});
					}

					resumeContent();

					function cleartitle(obj) {
						if($('flw_post_subject').style.display== 'none') {
							var sObj = $('subject');
							sObj.value = '';
							strLenCalc(sObj, 'checklen', 80);
							obj.innerHTML = '{lang follow_add_title}';
						} else {
							obj.innerHTML = '{lang follow_auto_title}';
						}
					}
					</script>

			</div>
			<!--{/if}-->

			<!--{if in_array($do, array('feed', 'view'))}-->
				<!--{if $do == 'feed' && $_G[setting][homestyle]}-->
				<ul class="mbw tb cl">
					<li$actives[follow]><a href="home.php?mod=follow&view=follow">{lang follow_following}</a></li>
					<li$actives[special]><a href="home.php?mod=follow&view=special">{lang follow_special_following}</a></li>
					<li$actives[other]><a href="home.php?mod=follow&view=other">{lang follow_hall}</a></li>
					<!--{hook/follow_nav_extra}-->
				</ul>
				<!--{/if}-->
				<!--{if !empty($list['feed'])}-->
					<div class="flw_feed">
						<ul id="followlist">
							<!--{subtemplate home/follow_feed_li}-->
						</ul>

						<!--{if count($list['feed']) > 19 && ($archiver || $primary)}-->
						<div id="loadingfeed" class="flw_more"><a href="javascript:;" onclick="loadmore();return false;" class="xi2">{lang follow_more} &raquo;</a></div>
						<!--{else}-->
						<div id="loadingfeed"></div>
						<!--{/if}-->
						<iframe id="downloadframe" name="downloadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
						<script type="text/javascript">
							function succeedhandle_attachpay(url, msg, values) {
								hideWindow('attachpay');
								window.location.href = url;
								//$('downloadframe').src = url;
							}
						</script>
					</div>
				<!--{else}-->
					<div class="emp">
						<h2 class="mbw xg1 xs2 hm"><!--{if $viewself}-->{lang follow_following_null}<!--{else}-->{lang follow_no_content}<!--{/if}--></h2>
						<!--{if $do == 'feed' && $view == 'special'}-->
						<div class="mtw hm xg1">
							{lang follow_add_special_tip}<a href="home.php?mod=follow&do=following&uid=$uid" class="xi2">{lang follow_add_special_following}</a>
						</div>
						<!--{/if}-->

						<!--{if !empty($recommend) && $showrecommend && $view != 'special'}-->
						<!--{eval $showrecommend = false;}-->
						<div class="flw_user_list mbm">
							<h3 class="xi2 xs2 mbw ptm pbm bbda">{lang follow_recommend}</h3>
							<ul class="ml mls cl">
							<!--{loop $recommend $ruid $rusername}-->
								<li>
									<a href="home.php?mod=space&uid=$ruid" class="avt" c="1" shref="home.php?mod=space&uid=$ruid"><!--{avatar($ruid,small)}--></a>
									<p><a href="home.php?mod=space&uid=$ruid" style="text-decoration: none !important;">$rusername</a></p>
									<!--{if helper_access::check_module('follow')}-->
									<span><a id="a_followmod_{$ruid}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$ruid&from=block" onclick="ajaxget(this.href);doane(event);" style="text-decoration: none !important;">{lang follow_add}</a></span>
									<!--{/if}-->
								</li>
							<!--{/loop}-->
							</ul>
						</div>
						<!--{/if}-->
					</div>
				<!--{/if}-->
				<!--{if count($list['feed']) > 19 && ($archiver || $primary)}-->
					<script type="text/javascript">
						var scrollY = 0;
						var page = 2;
						var feedInfo = {scrollY: 0, archiver: $archiver, primary: $primary, query: true, scrollNum:1};
						var loadingfeed = $('loadingfeed');

						function loadmore() {
							var currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
							var sHeight = document.documentElement.scrollHeight;
							if(currentScroll >= scrollY && currentScroll > (sHeight/5-5) && (feedInfo.primary ||feedInfo.archiver) && feedInfo.query) {
								/*
								if(feedInfo.scrollNum) {
									loadingfeed.className="flw_loading hm vm";
									loadingfeed.innerHTML = "<img src=\"{IMGDIR}/loading.gif\" class=\"vm\" /> {lang follow_loading}";
								}
								*/
								feedInfo.query = false;
								var archiver = 0;
								if(feedInfo.primary) {
									archiver = 0;
								} else if(feedInfo.archiver) {
									archiver = 1;
								}
								var url = 'home.php?mod=spacecp&ac=follow&op=getfeed&archiver='+archiver+'&page='+page+'&inajax=1'<!--{if $do == 'feed'}-->+'&viewtype=$view'<!--{elseif $do == 'view'}-->+'&uid=$uid&banavatar=1'<!--{/if}-->;
								var x = new Ajax();
								x.get(url, function(s) {
									if(trim(s) == 'false') {
										if(!archiver) {
											feedInfo.primary = false;
											loadmore();
											page = 1;
										} else {
											feedInfo.archiver = false;
											page = 1;
										}
									} else {
										$('followlist').innerHTML = $('followlist').innerHTML + s;
									}
									if(!feedInfo.primary && !feedInfo.archiver) {
										loadingfeed.className = "";
										loadingfeed.innerHTML = "";
									}
									feedInfo.query = true;
								});
								page++;
								if(feedInfo.scrollNum) {
									feedInfo.scrollNum--;
								} else if(!feedInfo.scrollNum) {
									window.onscroll = null;
								}

							}
							scrollY = currentScroll;
						}

						window.onload = function() {
							scrollY =  document.documentElement.scrollTop || document.body.scrollTop;
							window.onscroll = loadmore;
						}
					</script>
				<!--{/if}-->
			<!--{/if}-->

			<script type="text/javascript">
				var boxflag = {};
				var parentReplyId = '';
				function quickreply(fid, tid, feedid) {
					$('relaybox_'+feedid).style.display = 'none';
					var replyboxid = 'replybox_'+feedid;
					if(parentReplyId && parentReplyId != feedid) {
						var oldbox = $('replybox_'+parentReplyId);
						oldbox.innerHTML = '';
						oldbox.style.display = 'none';
					}
					if($(replyboxid).style.display == '' && boxflag[replyboxid]) {
						$(replyboxid).style.display = 'none';
					} else {
						boxflag[replyboxid] = true;
						ajaxget('forum.php?mod=ajax&action=quickreply&tid='+tid+'&fid='+fid+'&handlekey=qreply_'+feedid+'&feedid='+feedid, replyboxid);
						$(replyboxid).style.display = '';
					}
					parentReplyId = feedid;
				}
				function quickrelay(feedid, tid) {
					$('replybox_'+feedid).style.display = 'none';
					var replyboxid = 'relaybox_'+feedid;
					if($(replyboxid).style.display == '') {
						$(replyboxid).style.display = 'none';
					} else {
						ajaxget('home.php?mod=spacecp&ac=follow&op=relay&feedid='+feedid+'&tid='+tid+'&handlekey=qrelay_'+feedid, replyboxid);
						$(replyboxid).style.display = '';
					}
				}
			</script>

			<!--{elseif in_array($do, array('following', 'follower'))}-->
				<!--{if $list}-->
					<ul class="flw_ulist">
					<!--{loop $list $fuid $fuser}-->
						<li class="cl<!--{if in_array($fuser['uid'], $newfollower_list)}--> unread<!--{/if}-->">
						<!--{if $do=='following'}-->
							<a href="home.php?mod=space&uid=$fuser['followuid']" title="$fuser['fusername']" id="edit_avt" class="flw_avt" shref="home.php?mod=space&uid=$fuser['followuid']"><!--{avatar($fuser['followuid'],small)}--></a>
							<!--{if $viewself}-->
								<a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['followuid']" onclick="ajaxget(this.href);doane(event);" class="flw_btn_unfo">{lang follow_del}</a>
							<!--{elseif $fuser[followuid] != $_G[uid]}-->
								<!--{if $fuser['mutual']}-->
									<!--{if $fuser['mutual'] > 0}--><span class="z flw_status_2">{lang follow_follower_mutual}</span><!--{else}--><span class="z flw_status_1">{lang did_not_follow_to_me}</span><!--{/if}--><a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['followuid']"  onclick="ajaxget(this.href);doane(event);" class="flw_btn_unfo">{lang follow_del}</a>
								<!--{elseif helper_access::check_module('follow')}-->
									<a id="a_followmod_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$fuser['followuid']" onclick="ajaxget(this.href);doane(event);" class="flw_btn_fo">{lang follow_add}</a>
								<!--{/if}-->
							<!--{/if}-->
							<h6 class="pbn xs2"><a href="home.php?mod=space&uid=$fuser['followuid']" title="$fuser['fusername']" class="xi2" c="1" shref="home.php?mod=space&uid=$fuser['followuid']">$fuser['fusername']</a>&nbsp;<span id="followbkame_{$fuser['followuid']}" class="xg1 xs1 xw0"><!--{if $fuser['bkname']}-->$fuser[bkname]<!--{/if}--></span></h6>
							<!--{if !empty($fuser['recentnote'])}--><p><span class="xg1">{lang follow_recent_note}: </span>$fuser[recentnote]</p><!--{/if}-->
							<p class="ptm xg1">
								<!--{if $memberprofile[$fuid]['resideprovince'] || $memberprofile[$fuid]['residecity']}-->{lang comefrom}: $memberprofile[$fuid]['resideprovince'] $memberprofile[$fuid]['residecity'] &nbsp;<!--{/if}-->
								{lang follow_follower}: <a href="home.php?mod=follow&do=follower&uid=$fuser['followuid']"><strong class="xi2" id="followernum_$fuser['followuid']">$memberinfo[$fuid]['follower']</strong></a>{lang person} &nbsp;
								{lang follow_add}: <a href="home.php?mod=follow&do=following&uid=$fuser['followuid']"><strong class="xi2">$memberinfo[$fuid]['following']</strong></a>{lang person} &nbsp;
								<!--{if $viewself && $fuser[followuid] != $_G[uid]}-->
								<span class="pipe">|</span>
								<a href="home.php?mod=spacecp&ac=follow&op=bkname&fuid=$fuser['followuid']&handlekey=followbkame_$fuser['followuid']" id="fbkname_$fuser['followuid']" onclick="showWindow('followbkame_{$fuser['followuid']}', this.href, 'get', 0);"><!--{if $fuser['bkname']}-->{lang follow_mod_bkname}<!--{else}-->{lang follow_add_bkname}<!--{/if}--></a>
								<!--{if helper_access::check_module('follow')}-->
								<span class="pipe">|</span>
								<a id="a_specialfollow_{$fuser['followuid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&special={if $fuser['status'] == 1}2{else}1{/if}&fuid=$fuser['followuid']" onclick="ajaxget(this.href);doane(event);"><!--{if $fuser['status'] == 1}-->{lang follow_del_special_following}<!--{else}-->{lang follow_add_special_following}<!--{/if}--></a>
								<!--{/if}-->
								<!--{/if}-->
							</p>
						<!--{else}-->
							<a href="home.php?mod=space&uid=$fuser['uid']" title="$fuser['username']" id="edit_avt" class="flw_avt" c="1" shref="home.php?mod=space&uid=$fuser['uid']"><!--{avatar($fuser['uid'],small)}--></a>
							<!--{if $fuser[uid] != $_G[uid]}-->
								<!--{if $fuser['mutual']}-->
									<!--{if $fuser['mutual'] > 0}--><span class="z flw_status_2">{lang follow_follower_mutual}</span><!--{else}--><span class="z flw_status_1">{lang did_not_follow_to_me}</span><!--{/if}--><a id="a_followmod_{$fuser['uid']}" href="home.php?mod=spacecp&ac=follow&op=del&fuid=$fuser['uid']"  onclick="ajaxget(this.href);doane(event);" class="flw_btn_unfo">{lang follow_del}</a>
								<!--{elseif helper_access::check_module('follow')}-->
									<a id="a_followmod_{$fuser['uid']}" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$fuser['uid']" onclick="ajaxget(this.href);doane(event);" class="flw_btn_fo">{lang follow_add}</a>
								<!--{/if}-->
							<!--{/if}-->
							<h6 class="pbn xs2"><a href="home.php?mod=space&uid=$fuser['uid']" title="$fuser['username']" class="xi2" c="1" shref="home.php?mod=space&uid=$fuser['uid']">$fuser['username']</a></h6>
							<p><span class="xg1">{lang follow_recent_note}: </span>$fuser[recentnote]</p>
							<p class="ptm xg1">
								<!--{if $memberprofile[$fuid]['resideprovince'] || $memberprofile[$fuid]['residecity']}-->{lang comefrom}: $memberprofile[$fuid]['resideprovince'] $memberprofile[$fuid]['residecity'] &nbsp;<!--{/if}-->
								{lang follow_follower}: <a href="home.php?mod=follow&do=follower&uid=$fuser['uid']"><strong class="xi2" id="followernum_$fuser['uid']">$memberinfo[$fuid]['follower']</strong></a>{lang person} &nbsp;
								{lang follow_add}: <a href="home.php?mod=follow&do=following&uid=$fuser['uid']"><strong class="xi2">$memberinfo[$fuid]['following']</strong></a>{lang person}
							</p>
						<!--{/if}-->
						</li>
					<!--{/loop}-->
					</ul>
					<!--{if !empty($multi)}--><div>$multi</div><!--{/if}-->
					<br/>
				<!--{else}-->
					<div id="nofollowmsg">
						<div class="flw_thread">
							<ul>
								<li class="flw_article">
									<div class="emp">
										<h2 class="xg1 xs2 hm">
											<!--{if $viewself}-->
												<!--{if $do=='following'}-->
													{lang follow_you_following_none}<a href="home.php?mod=follow&view=other" class="xi2">{lang follow_hall}</a>{lang follow_fetch_interested_user}
												<!--{else}-->
													{lang follow_you_follower_none1}<a href="home.php?mod=follow" class="xi2">{lang follow_add_feed}</a>{lang follow_you_follower_none2}
												<!--{/if}-->
											<!--{else}-->
												<!--{if $do=='following'}-->
													{lang follow_user_following_none}
												<!--{else}-->
													{lang follow_user_follower_none}
												<!--{/if}-->

											<!--{/if}-->
										</h2>
									</div>
								</li>
							</ul>
						</div>
					</div>
				<!--{/if}-->
			<!--{/if}-->

		<!--{if !$_G[setting][homepagestyle]}--><!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]--><!--{/if}-->

		<!--{if $do != 'feed'}-->
					</div>
				</div>
			<!--{if $_G[setting][homepagestyle]}-->
			</div>
			<div class="sd">
				<!--{subtemplate home/space_userabout}-->
			<!--{/if}-->
		<!--{/if}-->
		</div>
	</div>

<!--{if !$_G[setting][homepagestyle]}-->
	<div class="wp mtn">
		<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
	</div>
<!--{/if}-->

<!--{if $showguide && $do == 'feed'}-->

<div id="nv_menu" style="display:none;">
	<div>
		<img src="{IMGDIR}/flw_guide.png" alt="" />
		<button class="pn pnc" style="margin: -50px 0 20px 430px;" onclick="hideMenu()"><span>{lang follow_i_know}</span></button>
	</div>
</div>
<script type="text/javascript">
	showMenu({'ctrlid':'nv','pos':'13','cover':'1'});
</script>
<!--{/if}-->

<script type="text/javascript" reload="1">
	function succeedhandle_followmod(url, msg, values) {
		var numObj = $('followernum_'+values['fuid']);
		if(numObj) {followernum = parseInt(numObj.innerHTML);}
		if(values['type'] == 'add') {
			if(values['from'] == 'head') {
				if($('followflag')) $('followflag').style.display = '';
				if($('unfollowflag')) $('unfollowflag').style.display = 'none';
				if($('fbkname_'+values['fuid'])) $('fbkname_'+values['fuid']).style.display = '';
			} else if($('a_followmod_'+values['fuid'])) {

				$('a_followmod_'+values['fuid']).innerHTML = '{lang follow_del}';
				if(values['from'] != 'block') {
					$('a_followmod_'+values['fuid']).className = 'flw_btn_unfo';
				}
				$('a_followmod_'+values['fuid']).href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid']+(values['from'] == 'block' ? '&from=block' : '');

			}
			if(numObj) {
				numObj.innerHTML = followernum + 1;
			}

		} else if(values['type'] == 'del') {
			if(values['from'] == 'head') {
				if($('followflag')) $('followflag').style.display = 'none';
				if($('unfollowflag')) $('unfollowflag').style.display = '';
				if($('followbkame_'+values['fuid'])) $('followbkame_'+values['fuid']).innerHTML = '';
				if($('fbkname_'+values['fuid'])) {
					$('fbkname_'+values['fuid']).innerHTML = '[{lang follow_add_bkname}]';
					$('fbkname_'+values['fuid']).style.display = 'none';
				}
			} else if($('a_followmod_'+values['fuid']))  {
				$('a_followmod_'+values['fuid']).innerHTML = '{lang follow_add}';
				if(values['from'] != 'block') {
					$('a_followmod_'+values['fuid']).className = 'flw_btn_fo';
				}
				$('a_followmod_'+values['fuid']).href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid='+values['fuid']+(values['from'] == 'block' ? '&from=block' : '');
			}
			if(numObj) {
				numObj.innerHTML = followernum - 1;
			}
		} else if(values['type'] == 'special') {
			if(values['from'] == 'head') {
				var specialObj = $('specialflag_'+values['fuid']);
				if(values['special'] == 1) {
					specialObj.className = 'flw_specialfo';
					specialObj.innerHTML = '{lang follow_add_special_following}';
				} else {
					specialObj.className = 'flw_specialunfo';
					specialObj.innerHTML = '{lang follow_del_special_following}';
				}
				specialObj.title = specialObj.innerHTML;
				specialObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&special='+values['special']+'&fuid='+values['fuid']+'&from=head';
			} else {
				$('a_specialfollow_'+values['fuid']).innerHTML = values['special'] == 1 ? '{lang follow_add_special_following}' : '{lang follow_del_special_following}';
				$('a_specialfollow_'+values['fuid']).href = 'home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&special='+values['special']+'&fuid='+values['fuid'];
			}
		}
	}
	function changefeed(tid, pid, flag, obj) {
		var x = new Ajax();
		var o = obj.parentNode;
		for(var i = 0; i < 4; i++) {
			if(o.id.indexOf('original_content_') == -1) {
				o = o.parentNode;
			} else {
				break;
			}
		}
		x.get('forum.php?mod=ajax&action=getpostfeed&inajax=1&tid='+tid+'&pid='+pid+'&type=changefeed&flag='+flag, function(s){
			o.innerHTML = s;
		});
	}
	function vieworiginal(clickobj, id) {
		var obj = $(id);
		if(obj.style.display == 'none') {
			obj.style.display =  '';
			clickobj.innerHTML = '- {lang pack_up}';
		} else {
			obj.style.display =  'none';
			clickobj.innerHTML = '+ {lang follow_open_feed}';
		}
	}
</script>

<!--{template common/footer}-->
<!--{/if}-->
